package com.test.example.controller.sensitive;

import com.xingluo.tools.sensitive.anno.Sensitive;
import com.xingluo.tools.sensitive.anno.SensitiveType;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 用注解脱敏
 */
@Data
@AllArgsConstructor
public class User {

    @Sensitive(SensitiveType.CHINESE_NAME)
    public String username;

    @Sensitive(SensitiveType.PASSWORD)
    public String password;

    @Sensitive(SensitiveType.TEL)
    public String tel;

    @Sensitive(SensitiveType.EMAIL)
    public String email;

    @Sensitive
    public String info;
}
